// https://iai.sh.cn/problem/741
#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  cout << (n - 2) * 180;
  return 0;
}

